﻿<%@ page language="C#" masterpagefile="MasterPageFrame.master" autoeventwireup="true" inherits="admin_dmthdpub, App_Web_bgx0xzll" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    #dmthdname,#phone,#postcode{width:230px}
    #address,#baidumap{width:500px}
    #remark{width:500px;height:80px}
    
    #iframebaidumap{width:100%;height:550px;border-bottom:2px #999999 solid}
    </style>
    
    <script type="text/javascript">
        window.onload = function() {

            $("#dmthdid").val(location.toString().QueryString("dmthdid"));
            $("#urlhref").val(unescape(QueryString("urlhref")));

            if ($("#dmthdid").val()) {
                //window.open("xmldmthd.aspx?dmthdid=" + $("#dmthdid").val());
                $form.ElementsDataFromXML("f1", "xmldmthd.aspx?dmthdid=" + $("#dmthdid").val());
                gE("baidumapshow").src = document.getElementById("baidumap").value;
            }
        }
    
        function __formcheck(event) {
            if (!jsformcheck(event))
                return false;

            return true;
        }

        function __setbaidumap() {
            $('#dialogbaidumap').dialog({
                autoOpen: false,
                width: 900,
                resizable: false,
                title: ""
            });
            document.getElementById("iframebaidumap").contentWindow.document.location = "baidumapMaker.htm";
            $('#dialogbaidumap').dialog('open');
        }

        function __setbaidumapOK() {
            document.getElementById("baidumap").value = document.getElementById("iframebaidumap").contentWindow.document.getElementById("result-url").innerText;
            gE("baidumapshow").src = document.getElementById("baidumap").value;
            $('#dialogbaidumap').dialog('close');
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <form name="f1" id="f1" method="post" onsubmit="javascript:return __formcheck(event);">
  	    <table border="0" cellspacing="0" cellpadding="0" class="formtable">
    	    <tr>
	          <td class="WebNote_Field">名称</td>
	          <td><input type="text" name="dmthdname" id="dmthdname" nullabled="false" datatype="string" maxlength="100" alerttext="名称"/></td>
	        </tr>
    	    <tr>
	          <td class="WebNote_Field">电话</td>
	          <td><input type="text" name="phone" id="phone" nullabled="false" datatype="string" maxlength="50" alerttext="登录密码"/>
	          </td>
	        </tr>
    	    <tr>
	          <td class="WebNote_Field">地址</td>
	          <td><input type="text" name="address" id="address" nullabled="false" datatype="string" maxlength="50" alerttext="登录名"/></td>
	        </tr>
    	    <tr>
	          <td class="WebNote_Field">邮编</td>
	          <td><input type="text" name="postcode" id="postcode" nullabled="true" datatype="string" maxlength="50" alerttext="邮编"/></td>
	        </tr>
    	    <tr>
	          <td class="WebNote_Field">百度地图</td>
	          <td>
	            <input type="hidden" name="baidumap" id="baidumap" nullabled="true" datatype="string" maxlength="255" alerttext="百度地图"/><br/>
	            <img src="" id="baidumapshow" alt="百度地图"/>
	            <br/>
	            <input  type="button" value="设置地图..." onclick="javascript:__setbaidumap();" class="btn"/></td>
	        </tr>
    	    <tr>
	          <td class="WebNote_Field">备注</td>
	          <td><textarea name="remark" id="remark" maxlength="255"></textarea></td>
	        </tr>
    	    <tr>
	          <td></td>
	          <td>
			    <input type="hidden" name="dmthdid" id="dmthdid">
			    <input type="hidden" name="urlhref" id="urlhref">
			    <input type="submit" value="提交" class="btn">
	          </td>
	        </tr>
	    </table>
    </form>
    <div id="dialogbaidumap" class="X-dialog">
        <iframe id="iframebaidumap" src="" frameborder="0"></iframe>
        <p style="text-align:center"><input  type="button" value="确定" onclick="javascript:__setbaidumapOK();"/></p>
    </div>
    
</asp:Content>

